﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AP.LUNA.DataAccess;
using AP.LUNA.DataEntities;

namespace AP.LUNA.BusinessLogic
{
    public class BLSeguridad:BLAstract
    {
        private LunaEntities context = null;
        public BLSeguridad()
        {
            context = GetContext();
        }
        public my_aspnet_users GetUserbyUser(string user)
        {
            
            return context.my_aspnet_users.Include("my_aspnet_membership").SingleOrDefault(u => u.name == user);
        }
    }
}
